package xiaoming;

public class java_chapter5_shangji_1 {

	public static void main(String[] args) {
		int num = 2;
		int sum =0;
		while(num<=100) {
			sum+=num;
			num = num +2;
			System.out.println(num);
			System.out.println(sum);
		}
		System.out.println(sum);

	}

}
